home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _DAFE90E0F1E847C0AC928883AFE56B30 < prev    next >
Encoding:
Text File  |  2004-04-21  |  1.4 KB  |  60 lines

  1.  
  2. shader()
  3. {// >=gf3
  4.     SurfaceID(SRFTYPE)
  5.     Shaderquality(1)
  6.     NoLightmaps()
  7.     Cull("cw")
  8.     pass()
  9.     {
  10.         Pixelshader("T_Rocks_S.psh")
  11.  
  12.         !include("__Tex1.mtt")
  13.         !include("__TerrainColormap.mtt")
  14.         !include("__FadeGen.mtt")
  15.     }
  16.     lightpass()
  17.     !include("Spot1Tex.mtt")
  18. }
  19.  
  20. shader()
  21. {// >=gf2
  22.     SurfaceID(SRFTYPE)
  23.     Shaderquality(0)
  24.     NoLightmaps()
  25.     pass()
  26.     {
  27.         tmu()
  28.         {
  29.             TexGen("planar")
  30.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  31.             texture()
  32.             {
  33.                 Image(%colortexture)
  34.                 addressfunc("clamp", "clamp", "clamp")
  35.             }
  36.  
  37.             ColorOp("mul", "texture", "tfactor", "current")     //texture * lighting
  38.  
  39.         }
  40.         tmu()
  41.         {
  42.             texture()
  43.             {
  44.                 Mapchannel(0)
  45.                 Image(TEXTURE1)
  46.                 !include(TEX1OPTIONSFILE)
  47.             }
  48.             ColorOp("mul", "texture", "current", "current")     //texture * lighting
  49.             AlphaOp("arg2", "texture", "current", "current")    //fadeblending
  50.         }
  51.         Tfactor(%daycolor_a, %daycolor_a, %daycolor_a, %daycolor_a)
  52.         !include("__FadeGenDayColorGF2.mtt")
  53.         !include("__LightningColorsGF2.mtt")
  54.     }
  55.     lightpass()
  56.     !include("spot_spotmap.mtt")
  57.     Cull("cw")
  58. }
  59.  
  60.